<?php

namespace app\api\controller\v2;

use app\common\controller\Api;
use app\common\model\Company as Com;
use app\common\utils\Utils;
use think\Db;

/**
 * 会员接口
 */
class Company extends Api
{
    protected $noNeedLogin = [];
    protected $noNeedRight = '*';

    //获取公司详情
    public function companyDetail() {
        $company_id = input('company_id/d', 0);
        $company = Com::get(['id' => $company_id]);
        if (!$company) {
            $this->error('公司未查到');
        }

        $this->success('公司详情', $company);
    }


}
